vim.g.mapleader = " "

local keymap = vim.keymap

-- ----------插入模式-----------
keymap.set("i", "jj", "<ESC>")

-- ----------视觉模式----------
keymap.set("v", "J", ":m '>+1<CR>gv=gv")
keymap.set("v", "K", ":m '<+1<CR>gv=gv")

-- ----------正常模式----------
-- 窗口
keymap.set("n", "<leader>/", ":nohl<CR>")

keymap.set("n", "<C-h>", "<C-w>h", opts)
keymap.set("n", "<C-j>", "<C-w>j", opts)
keymap.set("n", "<C-k>", "<C-w>k", opts)
keymap.set("n", "<C-l>", "<C-w>l", opts)
vim.keymap.set("n", "<Leader>v", "<C-w>v", opt)
vim.keymap.set("n", "<Leader>s", "<C-w>s", opt)
vim.keymap.set("n", "<Leader>p", "<C-o>", opt)
vim.keymap.set("n", "<Leader>n", "<C-i>", opt)


